3.2.79 \(\int \log (c (a+b x)^p) \, dx\) [179]

Optimal. Leaf size=24 \[ -p x+\frac {(a+b x) \log \left (c (a+b x)^p\right )}{b} \]

[Out]

-p*x+(b*x+a)*ln(c*(b*x+a)^p)/b

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 24, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2436, 2332} \begin {gather*} \frac {(a+b x) \log \left (c (a+b x)^p\right )}{b}-p x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[c*(a + b*x)^p],x]

[Out]

-(p*x) + ((a + b*x)*Log[c*(a + b*x)^p])/b

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rubi steps

\begin {align*} \int \log \left (c (a+b x)^p\right ) \, dx &=\frac {\text {Subst}\left (\int \log \left (c x^p\right ) \, dx,x,a+b x\right )}{b}\\ &=-p x+\frac {(a+b x) \log \left (c (a+b x)^p\right )}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 24, normalized size = 1.00 \begin {gather*} -p x+\frac {(a+b x) \log \left (c (a+b x)^p\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(a + b*x)^p],x]

[Out]

-(p*x) + ((a + b*x)*Log[c*(a + b*x)^p])/b

________________________________________________________________________________________

Maple [A]
time = 0.28, size = 36, normalized size = 1.50

method result size
norman \(x \ln \left (c \,{\mathrm e}^{p \ln \left (b x +a \right )}\right )+\frac {p a \ln \left (b x +a \right )}{b}-p x\) \(32\)
default \(\ln \left (c \left (b x +a \right )^{p}\right ) x -p b \left (\frac {x}{b}-\frac {a \ln \left (b x +a \right )}{b^{2}}\right )\) \(36\)
risch \(x \ln \left (\left (b x +a \right )^{p}\right )-\frac {i \pi x \,\mathrm {csgn}\left (i \left (b x +a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b x +a \right )^{p}\right ) \mathrm {csgn}\left (i c \right )}{2}+\frac {i \pi x \mathrm {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}+\frac {i \pi x \,\mathrm {csgn}\left (i \left (b x +a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b x +a \right )^{p}\right )^{2}}{2}-\frac {i \pi x \mathrm {csgn}\left (i c \left (b x +a \right )^{p}\right )^{3}}{2}+x \ln \left (c \right )+\frac {p a \ln \left (b x +a \right )}{b}-p x\) \(138\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(b*x+a)^p),x,method=_RETURNVERBOSE)

[Out]

ln(c*(b*x+a)^p)*x-p*b*(x/b-a/b^2*ln(b*x+a))

________________________________________________________________________________________

Maxima [A]
time = 0.46, size = 35, normalized size = 1.46 \begin {gather*} -b p {\left (\frac {x}{b} - \frac {a \log \left (b x + a\right )}{b^{2}}\right )} + x \log \left ({\left (b x + a\right )}^{p} c\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x+a)^p),x, algorithm="maxima")

[Out]

-b*p*(x/b - a*log(b*x + a)/b^2) + x*log((b*x + a)^p*c)

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 32, normalized size = 1.33 \begin {gather*} -\frac {b p x - b x \log \left (c\right ) - {\left (b p x + a p\right )} \log \left (b x + a\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x+a)^p),x, algorithm="fricas")

[Out]

-(b*p*x - b*x*log(c) - (b*p*x + a*p)*log(b*x + a))/b

________________________________________________________________________________________

Sympy [A]
time = 0.13, size = 36, normalized size = 1.50 \begin {gather*} \begin {cases} \frac {a \log {\left (c \left (a + b x\right )^{p} \right )}}{b} - p x + x \log {\left (c \left (a + b x\right )^{p} \right )} & \text {for}\: b \neq 0 \\x \log {\left (a^{p} c \right )} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(b*x+a)**p),x)

[Out]

Piecewise((a*log(c*(a + b*x)**p)/b - p*x + x*log(c*(a + b*x)**p), Ne(b, 0)), (x*log(a**p*c), True))

________________________________________________________________________________________

Giac [A]
time = 5.56, size = 39, normalized size = 1.62 \begin {gather*} \frac {{\left (b x + a\right )} p \log \left (b x + a\right )}{b} - \frac {{\left (b x + a\right )} p}{b} + \frac {{\left (b x + a\right )} \log \left (c\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x+a)^p),x, algorithm="giac")

[Out]

(b*x + a)*p*log(b*x + a)/b - (b*x + a)*p/b + (b*x + a)*log(c)/b

________________________________________________________________________________________

Mupad [B]
time = 0.07, size = 29, normalized size = 1.21 \begin {gather*} x\,\ln \left (c\,{\left (a+b\,x\right )}^p\right )-p\,x+\frac {a\,p\,\ln \left (a+b\,x\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(a + b*x)^p),x)

[Out]

x*log(c*(a + b*x)^p) - p*x + (a*p*log(a + b*x))/b

________________________________________________________________________________________